package com.xm2.demo.login.user.service;

import com.xm2.demo.login.user.vo.LoginVo;
import com.xm2.demo.login.user.vo.OrderDto;
import com.xm2.demo.login.user.vo.RegisterVo;
import com.xm2.demo.login.user.vo.StateDto;
import com.xm2.demo.model.Position;
import com.xm2.demo.model.User;

import java.util.List;

/**
 * @Create
 * @create 2018-12-20 15:18
 * @Description：
 */
public interface UserService {

    User findUserByUsername(String username);

    void save(RegisterVo registerVo);

    void updatePassword(User user);

    void rechargeByUserId(Integer userId, Double balance);

    List<String> findCenter(String address);

    int payOrder(OrderDto orderDto, Double payment,User user);

    List<StateDto> getStateRecord(String orderId);
}
